#include <iostream>
#include <cmath>

double calculateSinSum() {
    // Generate an array of numbers from 1 to 1000
    int numbers[1000];
    for (int i = 0; i < 1000; ++i) {
        numbers[i] = i + 1;
    }

    // Calculate the sum of the sine values
    double sum = 0.0;
    for (int i = 0; i < 1000; ++i) {
        sum += std::sin(numbers[i]);
    }

    return sum;
}

int main() {
    double result = calculateSinSum();
    std::cout << "Sum of sine values: " << result << std::endl;
    return 0;
}